package ltd.hellotrik.common.util;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Pageable {

	private long total;// 记录总数
	private long pageCount;// 分页总数
	private Object list;// 分页记录集合
	private long pageSize; // 每页大小
	private long pageIndex; // 当前页码

	public Pageable(int pageSize) {
		this.pageSize = pageSize;
	}

//	public void setTotal(long total) {
//		this.total = total;
//		this.pageCount = total % pageSize == 0 ? total / pageSize : total / pageSize + 1;
//	}


}
